package com.yanqu.road.entity.activity.snowgarden.config;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.property.Property;
import com.yanqu.road.utils.property.PropertyHelper;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_s_activity_snowgarden_comb")
public class SnowGardenCombConfig {

    @FieldTypeAnnotation(desc = "活动id", select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "id")
    private int id;
    @FieldTypeAnnotation(desc = "阶段")
    private int period;
    @FieldTypeAnnotation(desc = "组合类型")
    private int comb;
    @FieldTypeAnnotation(desc = "事件名称")
    private String name;
    @FieldTypeAnnotation(desc = "事件描述")
    private String desc;
    @FieldTypeAnnotation(desc = "事件效果")
    private String effectDesc;
    @FieldTypeAnnotation(desc = "事件参数")
    private int param;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward;

    private List<List<Property>> rewardList = new ArrayList<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public int getComb() {
        return comb;
    }

    public void setComb(int comb) {
        this.comb = comb;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getEffectDesc() {
        return effectDesc;
    }

    public void setEffectDesc(String effectDesc) {
        this.effectDesc = effectDesc;
    }

    public int getParam() {
        return param;
    }

    public void setParam(int param) {
        this.param = param;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
        this.rewardList = PropertyHelper.parseNewStringToPropertyList(reward);
    }

    public List<List<Property>> getRewardList() {
        return rewardList;
    }
}
